export function checkoutPhoneNumber(phone){
    let reg = /^((13[0-9])|(17[0-1,6-8])|(15[^4,\\D])|(18[0-9]))\d{8}$/
    return reg.test(phone)
}

//判断是安卓还是ios
export function isIos(){
    var u = navigator.userAgent;
    // var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
    return !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端

}

//类型判断
export function typeCheck(o){
    return Object.prototype.toString.call(o)
}